/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.skyeye.modeling.customerized.model;

import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.gef.requests.CreationFactory;

public class LogicDiagramFactory {

LogicDiagram root;

protected static void connect(MGPIONode e1, String t1, MGPIONode e2, String t2) {
	Wire wire = new Wire();
	wire.setSource(e1);
	wire.setSourceTerminal(t1);
	wire.setTarget(e2);
	wire.setTargetTerminal(t2);
	wire.attachSource();
	wire.attachTarget();
}


public Object getRootElement() {
	if (root == null){
		root = new LogicDiagram();
	}
		
	return root;
}

public static Object createLargeModel() {
	LogicDiagram root = new LogicDiagram();

	return root;
}

}
